<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!--只能输入1980-01-01之前的日期:-->
    <input type="date" name="beforeday" max="1979-12-31" id="">
    <!--只能输入2000-01-01之后的日期-->
    <input type="date" name="range" min="2000-01-01" id="">
    <!--只能输入1-5数字-->
    <input type="number" name="range" min="1" man="5" id="">
</body>
</html>